# 对 yP 进行模拟，来决定这个高度应该搞什么
# 调用要求 @s 所在的位置

function mountain:gen/common/rnd/random
execute if score yP mt_surf_fill matches 75.. run setblock ~ ~ ~ snow_block

execute if score yP mt_surf_fill matches 70..74 if score result mt_random matches 0..8 run setblock ~ ~ ~ snow_block
execute if score yP mt_surf_fill matches 70..74 if score result mt_random matches 9 run setblock ~ ~ ~ polished_basalt
execute if score yP mt_surf_fill matches 70..74 if score result mt_random matches 10..11 run setblock ~ ~ ~ stone

execute if score yP mt_surf_fill matches 65..69 if score result mt_random matches 0..5 run setblock ~ ~ ~ snow_block
execute if score yP mt_surf_fill matches 65..69 if score result mt_random matches 6..9 run setblock ~ ~ ~ polished_basalt
execute if score yP mt_surf_fill matches 65..69 if score result mt_random matches 10..11 run setblock ~ ~ ~ stone

execute if score yP mt_surf_fill matches 60..64 if score result mt_random matches 0..3 run setblock ~ ~ ~ snow_block
execute if score yP mt_surf_fill matches 60..64 if score result mt_random matches 4..6 run setblock ~ ~ ~ blackstone
execute if score yP mt_surf_fill matches 60..64 if score result mt_random matches 7..10 run setblock ~ ~ ~ polished_basalt
execute if score yP mt_surf_fill matches 60..64 if score result mt_random matches 11 run setblock ~ ~ ~ stone

execute if score yP mt_surf_fill matches ..59 if score result mt_random matches 0..1 run setblock ~ ~ ~ snow_block
execute if score yP mt_surf_fill matches ..59 if score result mt_random matches 2..5 run setblock ~ ~ ~ polished_basalt
execute if score yP mt_surf_fill matches ..59 if score result mt_random matches 6..10 run setblock ~ ~ ~ blackstone
execute if score yP mt_surf_fill matches ..59 if score result mt_random matches 11 run setblock ~ ~ ~ stone
